<!DOCTYPE html>
<html lang="en">
<head>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--<link href="https://cdn.90so.net/layui/2.5.6/css/layui.css" rel="stylesheet">-->
<body>
<form action="/pay" id="nameform" method="post">
    金额:<input type="text" name="transAmt">
    波豆:<input type="text" name="integralNum">
</form>
<button type="submit" form="nameform" value="Submit">
    下订单
</button>


<!--<form action="/queryPayStatus" id="selectOrder" method="get">-->
<!--被查询交易的商户端交易日期:<input type="text" name="merDate"><br>-->
<!--被查询交易的商户端交易流水号:<input type="text" name="merSeqNo">-->
<!--</form>-->

<!--<button type="submit" form="selectOrder" value="Submit">-->
<!--查询订单-->
<!--</button>-->
<br>
<!--<span>&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;退款&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;</span>-->
<!--<form action="/drawback" id="drawback" method="get">-->
    <!--原支付交易日期(yyyy-MM-dd):<input type="text" name="orgMerDate"><br>-->
    <!--原支付交易流水号:<input type="text" name="orgMerSeqNo"><br>-->
    <!--交易金额:<input type="text" name="transAmt">-->
<!--</form>-->

<!--<button type="submit" form="drawback" value="Submit">-->
    <!--退款-->
<!--</button>-->


<span>----------------------波豆退款--------------------------</span>
<form action="http://yxjf.188lanxi.com/PayManagerNBTest1/nb/refund" id="beanDrawback" method="get">
    原支付交易流水号:<input type="text" name="orderNo"><br>
    交易金额:<input type="text" name="orderPrice">
    波豆:<input type="text" name="integralNum">
</form>

<button type="submit" form="beanDrawback" value="Submit">
    波豆退款
</button>


<!--<br><button href="https://yxjf.188lanxi.com/eStoreBankOfNingbo/#/Home/store">-->
<!--宁波银行-->
<!--</button>-->

<script src="https://cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/jquery.form/4.2.2/jquery.form.js"></script>
<script>
    // setInterval("msg()", 1000);

    // $(document).ready(
    // function msg() {
    //
    //     // ajax请求
    //     $.ajax({
    //         url: "/payStatus",
    //         type: "POST",
    //         error: function (error) {
    //             console.log(error);
    //         },
    //         success: function (data) {
    //             console.log(data);
    //             var articles = $('.article');
    //             articles.empty();
    //             var data1 = data.data;
    //             console.log(data.data);
    //             var center = $(
    //                 '<span>' + '商户系统编号:' + '</span>' + '<p>' + data1['platformId'] + '</p>' +
    //                 '<span>' + '商户交易流水号:' + '</span>' + '<p>' + data1['merSeqNo'] + '</p>' +
    //                 '<span>' + '支付网关系统交易流水号:' + '</span>' + '<p>' + data1['transSeqNo'] + '</p>' +
    //                 '<span>' + '清算日期:' + '</span>' + '<p>' + data1['clearDate'] + '</p>' +
    //                 '<span>' + '交易金额:' + '</span>' + '<p>' + data1['transAmt'] + '</p>' +
    //                 '<span>' + '交易状态:' + '</span>' + '<p>' + data1['status'] + '</p>' +
    //                 '<span>' + '响应信息:' + '</span>' + '<p>' + data1['respMsg'] + '</p>'
    //                 )
    //             ;
    //             articles.append(center);
    //         }
    //     });
    // }

    $("#drawback").ajaxForm(function (data) {
        alert(data);
    })

</script>

</body>

</html>